<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<a id="h">点此进行下载</a>

<script>
    let blob = new Blob(["HELLO,WORLD"]);
    let url = window.URL.createObjectURL(blob);
    let dom = document.getElementById("h");
    dom.setAttribute("src", url);
</script>
</body>
</html>
